package service

import (
	ettp "gitee.com/bruce_le/easy_http"
	"morleyStoneHome/config"
)

//拉取新的质押数据
func pullStake() {
	builder := ettp.NewClientBuilder()
	client, err := builder.Build()

	if err != nil {
		panic(err)
	}

	data := make(map[string]string)
	data["name"] = "vvvvv1"
	data["name2"] = "2222222"
	url := config.Instance.ApiUrl
	//client.PostForm("http://127.0.0.1:8088", ettp.EasyPost(data))
	client.PostForm(url, ettp.EasyPost(data))
}
